import * as util from '../common/util.js'


function getAjax(arams,request,callback) {
	util.getAjax(arams, request, function (data) {
		// console.log(arams + ':' + JSON.stringify(data));
		// console.log(JSON.stringify(data.data));
		if (data.data.code == 1) {
			callback(data);
		}else {
			uni.showToast({
				icon:'none',
				title:msg
			})
		}
	});
	
}

export default getAjax;